package cn.com.nes.common.util;

import cn.com.nes.site.service.app.AppService;
import cn.com.nes.site.service.app.impl.AppServiceImpl;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class InerstFaultTask {
    @Resource
    AppService appService;
    @Scheduled(cron = "0 0/5 * * * ?") // 每分钟执行一次
    public void inerstFaultTask(){
        appService.getRealTimeData();
    }


}
